import request from '@/utils/request';
// 获取我的粉丝/我的关注
export const getFocus = (params) => {
  return request({
    url: '/api/zdservercore-bbs/bbsusergroupdtl/page',
    method: 'get',
    params: {
      ...params
    }
  })
}


export const getDetail = (id) => {
  return request({
    url: '/api/zdserver_bbs/bbsusergroupdtl/detail',
    method: 'get',
    params: {
      id
    }
  })
}

// 取消关注
export const remove = (row) => {
  return request({
    url: '/api/zdservercore-bbs/bbsusergroupdtl/remove',
    method: 'post',
    data: row
  })
}

// 添加关注
export const addFocus = (row) => {
  return request({
    url: '/api/zdservercore-bbs/bbsusergroupdtl/save',
    method: 'post',
    data: row
  })
}

export const update = (row) => {
  return request({
    url: '/api/zdserver_bbs/bbsusergroupdtl/submit',
    method: 'post',
    data: row
  })
}

